#include "mapobj_manager.h"
#include "../share/common_define.h"


bool CMAPObjManager::Initialize( )
{
	int32_t n = MAX_PLAYER;

	OBJ_POOL_DEFINE(OBJTYPE_PLAYER, n, "player", player_pool_);
	OBJ_POOL_DEFINE(OBJTYPE_SCENE, n, "scene", scene_pool_);
	OBJ_POOL_DEFINE(OBJTYPE_CREATURE, n * 10, "creature", creature_pool_);
	//OBJ_POOL_DEFINE( OBJTYPE_SESSION, ( n < 100 ) ? 10 : ( n / 10 ), "sesison", session_pool_ );

	LOG_INFO("default", "init size : %ld", (int64_t)n * sizeof(Player) +
		(int64_t)n * sizeof(CSceneInstance) +
		(int64_t)n * sizeof(Monster));

	return true;
}
